package cn.csust.net2.manager.shared.po;

import java.io.Serializable;

import cn.csust.net2.manager.shared.util.ClassForNameAble;
import cn.csust.net2.manager.shared.vo.TreeNode;
import cn.csust.net2.manager.shared.xml.XmlInfo;
import cn.csust.net2.manager.shared.xml.XmlResources;

import com.extjs.gxt.ui.client.data.BeanModelTag;
@ClassForNameAble
public class Academy extends PO implements Serializable,BeanModelTag,TreeNode {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3297706012311908339L;
	private static String DISPLAYNAME = "academyName";
	private Integer academyID;
	private String academyName;
	private String remark;

	public Integer getAcademyID() {
		return academyID;
	}

	public void setAcademyID(Integer academyID) {
		this.academyID = academyID;
	}

	public String getAcademyName() {
		return academyName;
	}

	public void setAcademyName(String academyName) {
		this.academyName = academyName;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@SuppressWarnings("rawtypes")
	@Override
	public Class getSelf() {
		// TODO Auto-generated method stub
		return Academy.class;
	}

	@SuppressWarnings("rawtypes")
	@Override
	public Class [] getChildren() {
		// TODO Auto-generated method stub
		return new Class[]{Major.class,Teacher.class};
	}

	@Override
	public String getNodeId() {
		// TODO Auto-generated method stub
		return this.getAcademyID().toString();
	}

	@Override
	public String getNodeName() {
		// TODO Auto-generated method stub
		return this.getAcademyName();
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.getAcademyName();
	}

	@Override
	public XmlInfo getXmlInfo(XmlResources instance) {
		// TODO Auto-generated method stub
		XmlInfo xmlInfo = new XmlInfo();
		xmlInfo.setTextResource(instance.academy());
		return xmlInfo;
	}

	@Override
	public String getDisplayName() {
		// TODO Auto-generated method stub
		return DISPLAYNAME;
	}

	@Override
	public String getNodeIdName() {
		// TODO Auto-generated method stub
		return "academyID";
	}


}
